package com.yangyang.androidconnect.phoneinfo.model;

import lombok.Data;

// CallRecord.java
@Data
public class CallRecord {
    private String number;
    private long date;
    private long duration;
    private int type; // 1:来电, 2:去电, 3:未接
    private long timestamp;

    public CallRecord() {
    }

    public CallRecord(String number, long date, long duration, int type) {
        this.number = number;
        this.date = date;
        this.duration = duration;
        this.type = type;
        this.timestamp = System.currentTimeMillis();
    }
}